<div id="Content">
<h1>讨论{% if fid != '0' %}<a href="{{ BBS_WEB_ROOT }}post.php?action=new_post&fid={{ fid }}" class="Button">添加讨论</a>{% endif %}</h1>
<ul class="DataList Discussions">
{% for thread in thread_list.data %}
<li class="DiscussionRow Mine">
   <ul class="Discussion">
            <li class="Options">
         <a title="Bookmark" class="Bookmark" rel="{{ thread.tid }}" href="{{ BBS_WEB_ROOT }}bookmark.php?action=addbookmark"><span>*</span></a>               <ul class="Options" style="display: none;">
                  <li class="First Last Parent"><strong>Options</strong>
                     <ul>
                        <li class="First"><a class="EditDiscussion" href="/bbs/vanilla/post/editdiscussion/1">Edit</a></li><li><a class="AnnounceDiscussion" href="/bbs/vanilla/discussion/announce/1/QEHIOXX42XHX">Announce</a></li><li><a class="SinkDiscussion" href="/bbs/vanilla/discussion/sink/1/QEHIOXX42XHX?Target=discussions">Unsink</a></li><li><a class="CloseDiscussion" href="/bbs/vanilla/discussion/close/1/QEHIOXX42XHX?Target=discussions">Reopen</a></li><li class="Last"><a class="DeleteDiscussion" href="/bbs/vanilla/discussion/delete/1/QEHIOXX42XHX?Target=discussions">Delete</a></li>                     </ul>
                  </li>
               </ul>
                     </li>
            <li class="Title">
         <strong><a class="DiscussionLink" href="index.php?action=viewthread&tid={{ thread.tid }}">{{ thread.subject }}</a></strong>
      </li>
      <li class="Meta">
         <span>{{ thread.replies}} 篇回复</span><span>最新回复 <a href="/bbs/profile/1/coderjoy">{{ thread.lastposter }}</a>  {{ thread.lastpost }}</span><a class="Category" href="{{ BBS_WEB_ROOT }}index.php?action=categories&fid={{ thread.fid }}">{{ thread.forum_name }}</a>      </li>
   </ul>
</li>
{% endfor %}
<!-- BEGIN pager -->
<script src="{{ BBS_WEB_ROOT }}js/page.js" language="javascript"></script>
<script language="javascript">
recordCount = {{thread_list.recordCount}}; //总记录数
show = {{thread_list.pageSize}}; //每页显示的记录数量
pageShow = 10; //每页显示的分页连接数量
pageCount = {{thread_list.pageCount}}; //总页数
pageNow = {{thread_list.page}}; //当前页数
fid={{fid}};
pageStr = "index.php?action=categories&fid="+fid+"&page=_page_"; //页面连接

document.write(showListPage(recordCount, show, pageShow, pageCount, pageNow, pageStr));
</script>
<!-- END pager -->
</ul>
<ul id="Definitions" style="display: none;">
            <li id="TransportError">当发送请求时出现一个错误<br />服务器返回如下信息: %s</li>
            <li id="ConfirmText">您要继续吗?</li>
            <li id="Okay">确定</li>
            <li id="Cancel">取消</li>
         </ul>
</div>